<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the Closure to execute when that URI is requested.
|
*/

Route::controller('api', 'ApiController');
Route::controller('coalesce', 'SomeController');
Route::get('putsession', 'AuthController@getPutsession');

Route::group(array('before' => 'auth'), function() {
	Route::get('logout', 'AuthController@doLogout');
    Route::get('/', function() {
        return View::make('home');
    });
    Route::get('alisinul', function() {
        return Redirect::to('/#/alisinul');
    });
    Route::get('apembasi', function() {
        return Redirect::to('/#/apembasi');
    });
    Route::controller('route', 'RouteController');
    Route::controller('export', 'ExportController');
});
             
Route::group(array('before' => 'guest'), function() {
	Route::get('login', 'AuthController@showLoginForm');
	//Route::post('login', 'AuthController@doLogin');
});
             
?>